class LthfsController < ApplicationController
  beafore_filter :load_ltft
  def load_ltft
    @ltft = Ltft.find(params[:ltft_id])
  end
  def new
    @lthf = @ltft.lthfs.new()
  end
  def create
    @lthf = @ltft.lthfs.new(params[:lthf])
    @lthf.ltft = @ltft
    
    respond_to do |format|
        if @lthf.save
          flash[:notice] = '发表回复成功.'
          format.html { redirect_to ltft_lthf_url(@ltft)}
#          format.xml  { render :xml => @file_image, :status => :created, :location => @file_image }
        else
          format.html { render :action => "new"}
#          format.xml  { render :xml => @file_image.errors, :status => :unprocessable_entity }
        end
      end
  end
end
